const {request}=require('./request')

// 写接口
module.exports = {
  // 启动图的接口
  qdlunbo(type='app'){
    return request('/banner/list',"GET",{type})
  },
  // 首页的轮播
  getlunbo(type='index'){
    return request('/banner/list','GET',{type})
  },
  // 首页下面的内容
  getlunbonr(){
    return request('/shop/goods/category/all','GET')
  },
  // 限时秒杀
  getmiaosha(miaosha = 'true'){
    return request('/shop/goods/list/v2','POST',{miaosha})
  },
   // 爆品推荐
   getbaoping(recommendStatus = '1'){
    return request('/shop/goods/list/v2','POST',{recommendStatus})
  },
    // 全民拼团
    getpintuan(pingtuan = 'true'){
      return request('/shop/goods/list/v2','POST',{pingtuan})
    },
     // 爆品推荐
     getshangping(data){
      return request('/shop/goods/list/v2','POST',data)
    },
}